home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / lang / c++-part1 / 2555 < prev    next >
Encoding:
Internet Message Format  |  1996-08-06  |  1.2 KB

  1. Path: alibaba.kmit.sk!not-for-mail
  2. From: brano@alibaba (Brano Zahradnik)
  3. Newsgroups: comp.lang.c++
  4. Subject: Re: problem with inline
  5. Date: 18 Jan 1996 12:56:49 +0100
  6. Organization: Kmit
  7. Message-ID: <4dlci1$nce@alibaba.kmit.sk>
  8. References: <821123790snz@jprassoc.demon.co.uk>
  9. NNTP-Posting-Host: sk2eu.eunet.sk
  10. X-Newsreader: TIN [version 1.2 PL2]
  11.  
  12. J Paul Robertson (Paul@jprassoc.demon.co.uk) wrote:
  13. : Can someone help me out here ?
  14.  
  15. : I'm getting an error message from the linker when I declare one of my
  16. : functions as inline.
  17.  
  18. : The compiler is MSVC 1.52
  19. : The error message is:
  20. : MAIN.OBJ(c:\temp\main.cpp) : error L2029:
  21. : 'public: void __far __pascal vga::blt_screen(void)__far' : unresolved external
  22.  
  23.  
  24. : Here's a snippet of code:
  25.  
  26. : MAIN.CPP:
  27. : #include "vga.h"
  28. : // ...
  29. :     VGA.wait_for_vsync();
  30. :     VGA.blt_screen();
  31. : // ...
  32.  
  33. : VGA.H:
  34. : class vga
  35. : {
  36. : public:
  37. : // ...
  38. :     void wait_for_vsync(void);
  39. :     void blt_screen(void);
  40.  
  41. : private:
  42. :     unsigned char far *video_buffer;
  43. :     unsigned char far *double_buffer;
  44. : };
  45.  
  46. : VGA.CPP:
  47. : // ...
  48. : inline void vga::blt_screen(void)
  49. : {
  50. :     _fmemcpy( video_buffer, double_buffer, 64000 );
  51. : }
  52. : // ...
  53.  
  54. : Thanks in advance,
  55. : -- 
  56. : Paul Robertson
  57.  
  58. Compile without optimalization.
  59.  
  60.